using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Server;

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGrpc();
builder.Services.AddSingleton<MailQueueRepository>();

var app = builder.Build();
app.MapGrpcService<MailerService>();
app.Run();
